package com.example.klaraservice.dao;

import com.example.klaraservice.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : Glacialerisa
 * @date : 2023/5/28 11:31
 * @desc :
 */
@Mapper
public interface CategoryMapper {
    /**
     * 获取所有类别
     * @return
     */
    public List<Category> selectAllCategory();

    /**
     * 添加新类别
     * @param category
     * @return
     */
    public boolean addCategory(Category category);
}
